home *** CD-ROM | disk | FTP | other *** search
/ Apple WWDC 1996 / WWDC96_1996 (CD).toast / Technology Materials / MacOS 8 Resources / Developer Tools / Mac OS 8 Interfaces & Libraries / Interfaces / IDLIncludes / DesktopAnimServer.idl < prev    next >
Text File  |  1996-05-01  |  3KB  |  73 lines

  1. /*
  2.      File:        DesktopAnimServer.idl
  3.  
  4.      Contains:    Declarations for the SOM based Screen Saver/Desktop server object.
  5.  
  6.      Version:    Technology:    2/1/96    1/29/96    12/7/95    12/2/95    12/1/95    7/31/95 DesktopAnimModuleDescPtr to GetDesktopAnimDraw and GetDesktopAnimPanel. <4> <3> <2> OSStatus=>OSStatus <1>
  7.                  Release:    Universal Interfaces 3.0d3 on Copland DR1
  8.  
  9.      Copyright:    © 1995-1996 by Apple Computer, Inc.  All rights reserved.
  10.  
  11.      Bugs?:        If you find a problem with this file, send the file and version
  12.                  information (from above) and the problem description to:
  13.  
  14.                      Internet:    apple.bugs@applelink.apple.com
  15.                      AppleLink:    APPLE.BUGS
  16. */
  17.  
  18.  
  19. #ifndef __DESKTOPANIMSERVER_IDL__
  20. #define __DESKTOPANIMSERVER_IDL__
  21.  
  22. #include <DesktopAnimDraw.idl>
  23. #include <DesktopAnimPanel.idl>
  24. #include <FileManagerTypes.idl>
  25.  
  26.  
  27. interface DesktopAnimServer : SOMObject
  28. {
  29.     /* initialization/destruction */
  30.     OSStatus    Initialize(in FSObjectRef moduleFileRef, in SInt16 refNum, in DesktopAnimModuleListRsrcHandle modulesList);
  31.     OSStatus    Close();
  32.     
  33.     /* Enumeration */
  34.     void        CountModules(in DesktopAnimFlags desktopAnimFlags, out SInt32 modulesCnt);
  35.     
  36.     /* Drawer/Panel server */
  37.     OSStatus    GetDesktopAnimDraw(in AVIDType prefsDisplayID, in DesktopAnimModuleDescRef moduleDescRef, in DesktopAnimModuleInfo moduleInfo, out DesktopAnimDraw desktopAnimDraw);
  38.     OSStatus    GetDesktopAnimPanel(in AVIDType prefsDisplayID, in DesktopAnimModuleDescRef moduleDescRef, in DesktopAnimModuleInfo moduleInfo, out DesktopAnimPanel desktopAnimPanel);
  39.  
  40.     /* Accessors */
  41.     OSStatus    GetModulesFile(out FSObjectRef modulesFileRef);
  42.     OSStatus    GetModuleDescription(in SInt32 index, inout DesktopAnimModuleInfo moduleInfo, out DesktopAnimModuleDescRef moduleDescRef);
  43.  
  44.     /* attributes */
  45.     readonly attribute    DesktopAnimModuleListRsrcHandle        fDesktopModuleList;
  46.     readonly attribute    SInt16                                fRefNum;
  47.  
  48. #ifdef __SOMIDL__
  49. implementation
  50.     {
  51.         passthru C_h =  "#include <DesktopAnimPanel.h>"
  52.                         "#include <DesktopAnimDraw.h>"
  53.                         "#include <FileManagerTypes.h>";
  54.                        
  55.         passthru C_xh = "#include <DesktopAnimPanel.xh>"
  56.                         "#include <DesktopAnimDraw.xh>"
  57.                         "#include <FileManagerTypes.h>";
  58.         
  59.  
  60.         /* Release Order.  Note, only append to the end of this
  61.          * list, so that the base class is forward compatible. */
  62.         releaseorder:    fRefNum, fDesktopModuleList,
  63.         
  64.                         _get_fRefNum, _get_fDesktopModuleList,
  65.                         Initialize, Close, CountModules, GetDesktopAnimDraw, GetDesktopAnimPanel,
  66.                         GetModulesFile, GetModuleDescription,
  67.                         unused0;
  68.     };
  69. #endif
  70. };
  71.  
  72. #endif
  73.